/**
 * 全局信息获取工具
 */
import { token_key, login_info_key, tenant_id } from '/@/common/constant/cacheConst';
import { createLocalStorage } from '/@/common/util/localCache';

const cls = createLocalStorage();

/**
 * 获取token
 */
export function getToken() {
  return cls.get(token_key);
}
/**
 * 获取登录信息
 */
export function getLoginBackInfo() {
  return cls.get(login_info_key);
}
/**
 * 获取租户id
 */
export function getTenantId() {
  return cls.get(tenant_id);
}